package net.oschina.bilbodai.common.beanutil.bean.creator;

import net.oschina.bilbodai.common.beanutil.bean.code.IPropertyCodeApplier;
import net.oschina.bilbodai.common.beanutil.bean.code.PrimeToReferenceApplier;
import net.oschina.bilbodai.common.beanutil.bean.code.ReferenceToPrimeApplier;
import net.oschina.bilbodai.common.beanutil.bean.core.PropertyDumpInfo;
import net.oschina.bilbodai.common.beanutil.bean.core.PropertyInfo;

/**
 * @author daimao  Date: 16/5/30 Time: 上午11:34
 * @version $Id$
 */
public enum PrimeToReferenceCreator implements IPropertyCodeApplierCreator {
    INSTANCE;

    @Override
    public IPropertyCodeApplier create(PropertyDumpInfo dumpInfo, PropertyInfo sourceInfo, PropertyInfo targetInfo) {

        return new PrimeToReferenceApplier(dumpInfo);
    }
}